package summerbug.hanzi.adapter;



import android.support.annotation.Nullable;
import android.widget.ImageView;

import com.bumptech.glide.Glide;
import com.chad.library.adapter.base.BaseQuickAdapter;
import com.chad.library.adapter.base.BaseViewHolder;

import java.util.List;

import summerbug.hanzi.R;

/**
 * Created by 76336 on 2018/5/12.
 */
public class HomeAdapter extends BaseQuickAdapter<String,BaseViewHolder> {

    public HomeAdapter(int layoutResId, @Nullable List<String> data) {
        super(layoutResId, data);
    }

    @Override
    protected void convert(BaseViewHolder helper, String item) {
        helper.setText(R.id.rv_tv_title,"123");
        helper.setText(R.id.rv_tv_content,"456");
        Glide.with(mContext).load(R.mipmap.zd).into((ImageView) helper.getView(R.id.rv_iv));
    }
}
